<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>文本对齐</title>
    <style>
        h1{
            /* 文本居中对齐 */
            text-align: center;
        }
    </style>
</head>
<body>
    <h1>我是你爹</h1>
</body>
</html>